package com.lebo.web.domain;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.apache.ibatis.type.Alias;

@Alias("activityDetail")
public class ActivityDetail implements Serializable {
    private static final long serialVersionUID = 3139847879848761635L;
    private long id;
    private String title;
    private String description;
    private String notice;
    private String coverIamge;
    private String qrCode;
    private String roomId;
    private Date createTime;
    private long accessCount;
    private long commentCount;
    private List<Video> video;
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public String getNotice() {
        return notice;
    }
    public void setNotice(String notice) {
        this.notice = notice;
    }
    public String getQrCode() {
        return qrCode;
    }
    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }
    public String getCoverIamge() {
        return coverIamge;
    }
    public void setCoverIamge(String coverIamge) {
        this.coverIamge = coverIamge;
    }
    public String getRoomId() {
        return roomId;
    }
    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public String getCreateTimeString() {
        return sdf.format(createTime);
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public long getAccessCount() {
        return accessCount;
    }
    public void setAccessCount(long accessCount) {
        this.accessCount = accessCount;
    }
    public List<Video> getVideo() {
        return video;
    }
    public void setVideo(List<Video> video) {
        this.video = video;
    }
    public long getCommentCount() {
        return commentCount;
    }
    public void setCommentCount(long commentCount) {
        this.commentCount = commentCount;
    }
}